package com.wcar.user.service;

import com.wcar.common.entity.User;
import com.wcar.common.entity.UserAddress;
import com.wcar.common.vo.Result;
import org.apache.tomcat.jni.Address;

import java.util.List;

/**
 * @program: four-wcar-idea
 * @description:
 * @author: 吴朝阳
 * @create: 2024-05-31 17:29
 **/
public interface UserAddressService {
    //根据id查询
    Result<List<UserAddress>> selectAddress(Integer userId);
    //修改
    Result<UserAddress> selectOneAddress(UserAddress userAddress);
    //查询一条
    Result<UserAddress> selectOne(Integer id);
    //查询城市
    Result<List<UserAddress>> selectCity(String country, String city, String province);
    //新增地址
    Result<UserAddress> insertUserAddress(UserAddress userAddress);

    Result<UserAddress> deleteUserAddress(UserAddress addressId);
}
